package com.fary.mapper;

import com.fary.base.BaseMapper;
import com.fary.po.MyUser;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
public interface UserMapper extends BaseMapper<MyUser> {

    @Select("SELECT * FROM my_user t WHERE t.user_name = #{userName}")
    MyUser getUserByName(String userName);
}
